package com.ukao.pad.bean;

import com.ukao.pad.eventbus.MainEvent;

import static com.ukao.pad.eventbus.MainEvent.Message.login;

/**
 * Created by ukaodev on 2017/6/29.
 */

public class BaseBean<T>   {

    public int httpCode;
    public String msg;
    public T data;


    public int getHttpCode() {
        /*401 未登录 403 无效的accessToken*/
        if (httpCode==403||httpCode==401){

           MainEvent.postNoData(login);

        }
        return httpCode;
    }

    public String getMsg() {
        return msg;
    }

    public T getData() {
        return data;
    }





}
